﻿<Canvas x:Name="LayoutRoot" Background="White" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Canvas.Triggers>
        <EventTrigger RoutedEvent="Canvas.Loaded">
            <EventTrigger.Actions>
                <BeginStoryboard>
                    <Storyboard x:Name="bounce" RepeatBehavior="Forever">
                        <DoubleAnimation From="0" To="200" Duration="0:0:3"
                                         Storyboard.TargetName="target"
                                         Storyboard.TargetProperty="(Canvas.Left)">
                            <DoubleAnimation.EasingFunction>
                                <BounceEase EasingMode="EaseOut" 
                                            Bounces="10" 
                                            Bounciness="2" />
                            </DoubleAnimation.EasingFunction>
                        </DoubleAnimation>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger.Actions>
        </EventTrigger>
    </Canvas.Triggers>
    <Ellipse Name="target" Width="40" Height="40" Fill="CadetBlue"
             Canvas.Top="50" Canvas.Left="100" />
</Canvas>